package com.softer.chengxin.score.dao;

import com.softer.chengxin.score.dao.provider.ScoreManagerDaoProvider;
import com.softer.chengxin.score.entity.ScoreComposite;
import com.softer.chengxin.score.entity.ScoreCompositeProvince;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.SelectProvider;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author Gong Zhiyang
 * @date 2018/10/12
 */
@Mapper
@Repository
public interface ScoreManagerDao {
    /**
     * 获取企业信用等级列表
     *
     * @param scoreComposite 查询实体
     * @return 信用等级集合
     */
    @SelectProvider(type = ScoreManagerDaoProvider.class, method = "getScoreList")
    List<ScoreComposite> getScoreList(@Param("sc")ScoreComposite scoreComposite);
    /**
     * 获取省平台推送的 企业信用等级列表
     *
     * @param scoreComposite 查询实体
     * @return 信用等级集合
     */
    @SelectProvider(type = ScoreManagerDaoProvider.class, method = "getScoreListFromProvince")
    List<ScoreCompositeProvince> getScoreListFromProvince(@Param("sc")ScoreComposite scoreComposite);

}
